<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
        + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>角色管理</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="icon" href="<%=basePath%>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=basePath%>favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/common.css" />

<script type="text/javascript" src="<%=basePath%>js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/role.js"></script>
</head>

<body>
    <a href="#none">index|首页</a>
    <a href="<%=basePath%>user/toQueryUser.action">userManager|用户管理</a>
    <a href="<%=basePath%>role/toRoleManger.action#none" onclick="return false;">roleManager|角色管理</a>
    <a href="<%=basePath%>game/sudo/generate.action">game|游戏</a>
    <a href="#none">index|首页</a>
    <br>
    <hr>
    <form id="roleForm" action="<%=basePath%>role/toAddRole.action" method="post">
        <input id="role.id" name="role.id" type="hidden" />
        <table>
            <tbody>
                <s:iterator value="roleList" status="roleIndex">
                    <tr>
                        <td align="right"><s:property value="id" /></td>
                        <td align="center"><s:property value="name" /></td>
                        <%--
                        <td><a href="#none" onclick="editRole('');return false;">编辑</a> <font color="black">|</font> <a href="#none"
                            onclick="delRole('');return false;">删除</a></td>
                         --%>
                        <td><a href="#none" id="editRoleInfo_<s:property value="#roleIndex.index"/>"
                            onclick="editRole('<s:property value="id"/>');return false;">编辑</a> <font color="black">|</font> <a href="#none"
                            id="delRoleInfo_<s:property value="#roleIndex.index"/>" onclick="delRole('<s:property value="id"/>');return false;">删除</a></td>
                    </tr>
                </s:iterator>
            </tbody>
        </table>
    </form>
</body>
</html>
